package com.lanqiao.mapper;

import com.lanqiao.domain.District;
import com.lanqiao.domain.House;
import com.lanqiao.domain.Street;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 张建平 on 2020/8/12.
 */
@Repository
public interface HouseMapper {

    List<House> select(@Param("h") House condition,
                       @Param("pageNum") int pageNum,   //页号，供pagehelper插件内部使，我们的SQL不用它
                       @Param("pageSize") int pageSize); //每页记录数，供pagehelper插件内部使，我们的SQL不用它

    List<District> selectDistrict();

    List<Street> selectStreet(Integer id);

    House selectById(Integer id);

    void insert(House house);
}
